﻿using System.Windows;

namespace MijnMultiOSRSSApp.Common.Helpers
{
    public class ErrorMessage
    {
        public static void Show(string message)
        {
            MessageBox.Show(message);
        }
        public static void Show(string title, string message)
        {
            MessageBox.Show(message, title, MessageBoxButton.OK);
        }

        public static void ShowDispatched(string message)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() => MessageBox.Show(message));
        }
        public static void ShowDispatched(string title, string message)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() => MessageBox.Show(message, title, MessageBoxButton.OK));
        }
    }
}
